package com.neusoft;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;

public class DemoOutputStream {

    public static void main(String[] args) throws Exception {
        //创建输出流对象
        FileOutputStream fos = new FileOutputStream("javase0923\\b.txt");
        //写数据
        fos.write("helloworld".getBytes());
        //冲刷缓冲区
        fos.flush();
        //关闭流
        fos.close();

    }
}
